package com.qf.lanzhou.blog.api.pojo.entity;

import com.qf.lanzhou.blog.api.util.TimeUtil;

import javax.xml.crypto.Data;
import java.sql.Timestamp;

/**
 * @author jack
 */
public class FeedbackEntity {
    private Long id;
    private String userName;
    //反馈意见
    private String feedback;
    //是否满意
    private String fbSatisfaction;
    //电话
    private String fbPhoneNumber;
    //最喜欢的博主
    private String fbFavoriteBlogger;
    //时间
    private Timestamp fbCreatedtime;
    private  String standarTime;

    public  String getStandarTime() {
        return standarTime;
    }

    public void setStandarTime(Timestamp fbCreatedtime) {

        String standardTime = TimeUtil.getStandardTime(fbCreatedtime);
        this.standarTime=standardTime;
    }
    public FeedbackEntity() {

    }


    @Override
    public String toString() {
        return "FeedbackEntity{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", feedback='" + feedback + '\'' +
                ", fbSatisfaction='" + fbSatisfaction + '\'' +
                ", fbPhoneNumber='" + fbPhoneNumber + '\'' +
                ", fbFavoriteBlogger='" + fbFavoriteBlogger + '\'' +
                ", fbCreatedtime=" + fbCreatedtime +
                '}';
    }


    public FeedbackEntity(Long id, String userName, String feedback,
                          String fbSatisfaction, String fbPhoneNumber, String
                                  fbFavoriteBlogger, Timestamp fbCreatedtime) {
        this.id = id;
        this.userName = userName;
        this.feedback = feedback;
        this.fbSatisfaction = fbSatisfaction;
        this.fbPhoneNumber = fbPhoneNumber;
        this.fbFavoriteBlogger = fbFavoriteBlogger;
        this.fbCreatedtime = fbCreatedtime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getFeedback() {
        return feedback;
    }

    public void setFeedback(String feedback) {
        this.feedback = feedback;
    }

    public String getFbSatisfaction() {
        return fbSatisfaction;
    }

    public void setFbSatisfaction(String fbSatisfaction) {
        this.fbSatisfaction = fbSatisfaction;
    }

    public String getFbPhoneNumber() {
        return fbPhoneNumber;
    }

    public void setFbPhoneNumber(String fbPhoneNumber) {
        this.fbPhoneNumber = fbPhoneNumber;
    }

    public String getFbFavoriteBlogger() {
        return fbFavoriteBlogger;
    }

    public void setFbFavoriteBlogger(String fbFavoriteFlogger) {
        this.fbFavoriteBlogger = fbFavoriteFlogger;
    }

    public Timestamp getFbCreatedtime() {
        return fbCreatedtime;
    }

    public void setFbCreatedtime(Timestamp fbCreatedtime) {
        this.fbCreatedtime = fbCreatedtime;
    }
}
